const Base = require('./base.js');

module.exports = class extends Base {
  /**
  * 用户登出函数
  */
  async indexAction() {
    await this.session('uid', null);
    await this.session(null);
    this.cookie('__thincho_uid', null);
    this.cookie('__thincho_authCode', null);
    return this.redirect('/admin/login/index');
  }
};
